package com.swanclouds.redfish.managers;

import com.swanclouds.api.Apis;
import com.swanclouds.api.managers.ManagerResourceSerice;
import com.swanclouds.api.managers.ManagerService;
import com.swanclouds.core.transport.ClientConstants;
import com.swanclouds.model.common.redfish.CollectionResource;
import com.swanclouds.redfish.common.redfish.CollectionResourceModel;
import com.swanclouds.redfish.internal.BaseRedfishService;

/**
 * 查询所有管理资源集合信息
 */
public class ManagerResourceServiceImpl extends BaseRedfishService implements ManagerResourceSerice {

    /**
     * 查询所有管理资源集合信息
     * @return CollectionResource
     */
    @Override
    public CollectionResource get() {
        return get(CollectionResourceModel.class,uri(ClientConstants.PATH_MANAGERS)).execute();
    }

    /**
     * 查询所有管理资源集合信息详情
     * @return ManagerService
     */
    @Override
    public ManagerService Detail() {
        return Apis.get(ManagerService.class);
    }
}
